package com.forum.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FavoritesMapper {
    @Select("select count(*) from favorites where user_id = #{id}")
    Integer query(Long id);
}
